package com.ruoyi.faceplus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.faceplus.mapper.FaceConfigMapper;
import com.ruoyi.faceplus.domain.FaceConfig;
import com.ruoyi.faceplus.service.IFaceConfigService;

/**
 * 人脸库配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-18
 */
@Service
public class FaceConfigServiceImpl implements IFaceConfigService 
{
    @Autowired
    private FaceConfigMapper faceConfigMapper;

    /**
     * 查询人脸库配置
     * 
     * @param id 人脸库配置主键
     * @return 人脸库配置
     */
    @Override
    public FaceConfig selectFaceConfigById(Long id)
    {
        return faceConfigMapper.selectFaceConfigById(id);
    }

    /**
     * 查询人脸库配置列表
     * 
     * @param faceConfig 人脸库配置
     * @return 人脸库配置
     */
    @Override
    public List<FaceConfig> selectFaceConfigList(FaceConfig faceConfig)
    {
        return faceConfigMapper.selectFaceConfigList(faceConfig);
    }

    /**
     * 新增人脸库配置
     * 
     * @param faceConfig 人脸库配置
     * @return 结果
     */
    @Override
    public int insertFaceConfig(FaceConfig faceConfig)
    {
        return faceConfigMapper.insertFaceConfig(faceConfig);
    }

    /**
     * 修改人脸库配置
     * 
     * @param faceConfig 人脸库配置
     * @return 结果
     */
    @Override
    public int updateFaceConfig(FaceConfig faceConfig)
    {
        return faceConfigMapper.updateFaceConfig(faceConfig);
    }

    /**
     * 批量删除人脸库配置
     * 
     * @param ids 需要删除的人脸库配置主键
     * @return 结果
     */
    @Override
    public int deleteFaceConfigByIds(Long[] ids)
    {
        return faceConfigMapper.deleteFaceConfigByIds(ids);
    }

    /**
     * 删除人脸库配置信息
     * 
     * @param id 人脸库配置主键
     * @return 结果
     */
    @Override
    public int deleteFaceConfigById(Long id)
    {
        return faceConfigMapper.deleteFaceConfigById(id);
    }
}
